home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 4748 < prev    next >
Encoding:
Internet Message Format  |  1996-08-06  |  1.1 KB

  1. Path: news.candu.aecl.ca!news
  2. From: Mark Kotyk <kotykm@sask.aecl.ca>
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: HELP - Can C++ resd a Synchronous Data stream?
  5. Date: Wed, 31 Jan 1996 13:05:29 -0600
  6. Organization: AECL
  7. Message-ID: <310FBD79.1A40@sask.aecl.ca>
  8. References: <4elvj1$53n@mail.TJU.EDU>
  9. NNTP-Posting-Host: speed.sask.aecl.ca
  10. Mime-Version: 1.0
  11. Content-Type: text/plain; charset=us-ascii
  12. Content-Transfer-Encoding: 7bit
  13. X-Mailer: Mozilla 2.0b5 (WinNT; I)
  14.  
  15. Joe Cardani wrote:
  16. > I'm considering purchasing C++ and learning the language in order
  17. > to program a specific application.
  18. > I wish to read a continuous data stream from the
  19. > COM 1 port of thePC (which is synchronous)
  20. > buffer the contents, and search for a specific word in the buffer.
  21. > Then convert the binary to HEX and print it out. Is this someting
  22. > that C++ can handle.
  23.  
  24. It can be done, but it won't be easy.
  25.  
  26. A simpler, but less flexible/powerful way would be the good ol'
  27. basic:
  28.  
  29. open "com1:9600,N,8,1" as #1
  30.  
  31. Mind you the maximum safe speed is 9600 baud, but it is alot 
  32. easier than writing interrupt handlers and such.
  33.